'use strict';

var mongoose = require('mongoose');

var jobModel = function () {

    //Define a super simple schema for our products.
    var jobSchema = mongoose.Schema({
        jobId: Number,
        jobName: String,
        linkUrl: String,
        payment: Number,
        areaId: Number,
        userName: String,
        company: String,
        address: String
    });

    //Verbose toString method
    jobSchema.methods.whatAmI = function () {

    };

    return mongoose.model('Job', jobSchema);

};

module.exports = new jobModel();
